package types

type ProofData struct {
	fileid    string
	sha256    string
	sm3       string
	md5       string
	timestamp string
}

//NewProofData return proof data storaged in proof contract
func NewProofData(fileid, sha256, sm3, md5, timestamp string) *ProofData {
	return &ProofData{
		fileid:    fileid,
		sha256:    sha256,
		sm3:       sm3,
		md5:       md5,
		timestamp: timestamp,
	}
}

func (pd *ProofData) FileID() string    { return pd.fileid }
func (pd *ProofData) FileHash() string  { return pd.sha256 }
func (pd *ProofData) Sm3() string       { return pd.sm3 }
func (pd *ProofData) Md5() string       { return pd.md5 }
func (pd *ProofData) Timestamp() string { return pd.timestamp }
